package com.heclgg.eggcalculator

import android.os.Bundle
import android.widget.Button
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import com.heclgg.eggcalculator.dialog.MyDialog

class MainActivity : AppCompatActivity() {

    companion object {
        const val TAG = "MainActivity"
    }

    private lateinit var myDialog: MyDialog

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main)
        val button = findViewById<Button>(R.id.main_button)
        button.setOnClickListener {
            showMyDialog()
        }
    }

    private fun showMyDialog() {
        myDialog = MyDialog(this, R.style.Theme_EggCalculator)
        myDialog.show()
    }
}